home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / fcfgw40s.zip / SELECTLE.CPP < prev    next >
C/C++ Source or Header  |  1996-04-17  |  1KB  |  57 lines

  1. // SelectLevel.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "FileCFG.h"
  6. #include "SelectLevel.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CSelectLevel dialog
  16.  
  17.  
  18. CSelectLevel::CSelectLevel(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CSelectLevel::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CSelectLevel)
  22.     m_Level = 0;
  23.     m_MatchLevel = -1;
  24.     //}}AFX_DATA_INIT
  25. }
  26.  
  27.  
  28. void CSelectLevel::DoDataExchange(CDataExchange* pDX)
  29. {
  30.     CDialog::DoDataExchange(pDX);
  31.     //{{AFX_DATA_MAP(CSelectLevel)
  32.     DDX_Control(pDX, IDC_RADIO_EXACT, m_Match);
  33.     DDX_Control(pDX, IDC_SPIN_LEVEL, m_Spin);
  34.     DDX_Text(pDX, IDC_EDIT_LEVEL, m_Level);
  35.     DDV_MinMaxUInt(pDX, m_Level, 0, 65535);
  36.     DDX_Radio(pDX, IDC_RADIO_EXACT, m_MatchLevel);
  37.     //}}AFX_DATA_MAP
  38. }
  39.  
  40.  
  41. BEGIN_MESSAGE_MAP(CSelectLevel, CDialog)
  42.     //{{AFX_MSG_MAP(CSelectLevel)
  43.     //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CSelectLevel message handlers
  48.  
  49. BOOL CSelectLevel::OnInitDialog() 
  50. {
  51.     CDialog::OnInitDialog();
  52.     
  53.     m_Spin.SetRange(0, UD_MAXVAL);
  54.     m_Match.SetCheck(1);
  55.     return TRUE;
  56. }
  57.